package JVM;

/*
 * @Author: qianmingtian
 * @Date: 2020-07-21 10:11:30
 * @LastEditors: qianmingtian
 * @LastEditTime: 2020-07-21 10:24:01
 * @FilePath: \qianmingtian.github.io\code\JVM\TestPretenureSizeThreshold.java
 */ 
/**
 * java  -verbose:gc -Xms20M -Xmx20M -Xmn10M -XX:+PrintGCDetails -XX:SurvivorRatio=8  TestPretenureSizeThreshold
 * 
 * Heap
 PSYoungGen      total 9216K, used 984K [0x00000000ff600000, 0x0000000100000000, 0x0000000100000000)
  eden space 8192K, 12% used [0x00000000ff600000,0x00000000ff6f6398,0x00000000ffe00000)
  from space 1024K, 0% used [0x00000000fff00000,0x00000000fff00000,0x0000000100000000)
  to   space 1024K, 0% used [0x00000000ffe00000,0x00000000ffe00000,0x00000000fff00000)
 ParOldGen       total 10240K, used 8192K [0x00000000fec00000, 0x00000000ff600000, 0x00000000ff600000)
  object space 10240K, 80% used [0x00000000fec00000,0x00000000ff400010,0x00000000ff600000)
 Metaspace       used 2559K, capacity 4486K, committed 4864K, reserved 1056768K
  class space    used 287K, capacity 386K, committed 512K, reserved 1048576K
 */

public class TestPretenureSizeThreshold {
    private static final int _1MB = 1024 * 1024;

    public static void main(String[] args) {
        byte[] allocation;
        allocation = new byte[8*_1MB];
    }

}